package com.meme.app;

import java.util.Hashtable;

public class AppRegistry 
{
	static Hashtable <String, Object> mRegistry = new Hashtable <String, Object> ();
	
	public static Object setRegistry (String key, Object value)
	{
		if ( value == null )
		{
			removeRegistry (key);
			return null;
		}
		
		return mRegistry.put (key, value);
	}
	
	public static Object removeRegistry (String key)
	{
		try
		{
			return mRegistry.remove(key);
		}
		catch ( Exception e )
		{
			return null;
		}
	}
	
	public static Object getRegistry (String key)
	{
		try
		{
			return mRegistry.get (key);
		}
		catch (Exception e)
		{
			return null;
		}
	}
}
